package main

import (
	"fmt"
	"strconv"
)

/**
 * @author: guangcheng
 * @date:   2020/10/28 23:14
 * @version  V1.0
 * @description:
 *
 */
func main() {

	var v1 string = "123"
	var v2 string = "hello" //转成int不报错,但是结果永远是0
	var n1 int64

	n1, _ = strconv.ParseInt(v1, 10, 64)
	n1, _ = strconv.ParseInt(v2, 10, 64)
	fmt.Printf("n1 type=%T n1=%v\n", n1, n1)
}
